package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.common.utils.Tools;
import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Date 2022/9/16
 * @Author jiaLong
 * @Descript 冷库出租记录
 */
@Entity
@Table(name = "t_cold_rent_record")
public class ColdRentRecord extends BaseEntity {

    private String createTime = Tools.getCurrentTime();        // 出租日期

    private String rentName;           // 租户姓名

    private String phone;           // 联系方式

    private String rentUserId;           // 租户ID

    private String coldId;              // 出租的冷库ID

    private String coldName;            // 冷库名字
    private String coldArea;            // 冷库面积

    private String img; //冷酷图片

    private String companyId;

    private String startTime;           // 起租时间
    private String endTime;             // 出租截至时间


    public String getColdName() {
        return coldName;
    }

    public void setColdName(String coldName) {
        this.coldName = coldName;
    }

    public String getColdArea() {
        return coldArea;
    }

    public void setColdArea(String coldArea) {
        this.coldArea = coldArea;
    }

    public ColdRentRecord() {
    }

    public ColdRentRecord(String rentName, String rentUserId, String coldId, String coldName, String startTime, String endTime) {
        this.createTime = Tools.getCurrentTime();
        this.rentName = rentName;
        this.rentUserId = rentUserId;
        this.coldId = coldId;
        this.coldName = coldName;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRentName() {
        return rentName;
    }

    public void setRentName(String rentName) {
        this.rentName = rentName;
    }

    public String getRentUserId() {
        return rentUserId;
    }

    public void setRentUserId(String rentUserId) {
        this.rentUserId = rentUserId;
    }

    public String getColdId() {
        return coldId;
    }

    public void setColdId(String coldId) {
        this.coldId = coldId;
    }


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
